<div class="dux-tip am-cf">
    <div class="tip-body">
        <h1>提单已提交，请您进行支付！</h1>
        <p>应付金额: <span class="am-text-danger">￥{$totalPrice}</span>元 (含运费<span
                class="am-text-danger">{$deliveryPrice}</span>元)</p>
    </div>
</div>
<div class="dux-box dux-pay-body">
    <div class="box-header">
        请选择支付方式并付款
    </div>
    <div class="dux-pay-type am-cf">
        <label class="active">
            <input type="radio" name="type" value="" > 账户支付 (余额{$userInfo.money}元)
        </label>
        <?php $i = 0; ?>
        <!--loop{$payList as $type => $vo}-->
        <!--if{$vo.platform == 'mobile'}-->
        <?php $i++; ?>
        <label>
            <input type="radio" name="type" value="{$type}" <!--if{$i == 1}--> checked <!--{/if}-->> {$vo.name}
        </label>
        <!--{/if}-->
        <!--{/loop}-->
    </div>
</div>
<div class="am-padding">
    <div class="am-btn am-btn-danger am-btn-block" id="pay">确认订单，立即支付</div>
</div>
<script>
    var orderNo = '{$orderNo}';
    Do('base', 'dialog', function () {
        $('#pay').click(function () {
            app.ajax({
                url: '{url()}',
                type: 'post',
                data: {
                    type: $('input[name="type"]:checked').val(),
                    order_no: orderNo
                },
                success: function (msg, url) {
                    window.location.href = url;
                },
                error: function (msg) {
                    app.error(msg);
                }
            });
        });
    });
</script>